<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v3.6.0" />
  <meta name="description" content="ECShop" />
  <meta name="keywords" content="ECShop" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta content="yes" name="apple-touch-fullscreen">
  <meta content="telephone=no,email=no" name="format-detection">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js')); ?>
</head>
<body>
<h3 style="text-align:center">小程序代理合伙人下单数据--如意投推广订单暂未计算</h3>
<?php if ($this->_var['is_upload'] == 1): ?>
<form method="post" action="index.php?act=upload" enctype="multipart/form-data">
        <div>导入Excel表：</div><input  type="file" name="file_stu" />
           <input type="submit"  value="导入" /> 
          
</form>
<?php endif; ?>
<div>表格最后更新时间为： <?php echo $this->_var['lastUpdate']; ?></div>
<form method="post" action="index.php?act=order_query" enctype="multipart/form-data">
         <div>搜索：</div>
           <span>下单时间：</span> 
           <select name="order_create_date">
              <option value="1" <?php if ($this->_var['order_create_date'] == ''): ?> selected="selected" <?php endif; ?>>今天</option>
              <option value="2" <?php if ($this->_var['order_create_date'] == 2): ?> selected="selected" <?php endif; ?>>昨天</option>
               <option value="30" <?php if ($this->_var['order_create_date'] == 30): ?> selected="selected" <?php endif; ?>>本月(结算)</option>
              <option value="60" <?php if ($this->_var['order_create_date'] == 60): ?> selected="selected" <?php endif; ?>>上月(结算)</option>
              <option value="90" <?php if ($this->_var['order_create_date'] == 90): ?> selected="selected" <?php endif; ?>>上上月(结算)</option>
              <option value="365" <?php if ($this->_var['order_create_date'] == 365): ?> selected="selected" <?php endif; ?>>一年(结算)</option>
            </select>
            <span>结算状态：</span> 
            <select name="order_settlement">
              <option value="1" <?php if ($this->_var['order_settlement'] == 1): ?> selected="selected" <?php endif; ?>>全部不含失效</option>
              <option value="2" <?php if ($this->_var['order_settlement'] == 2): ?> selected="selected" <?php endif; ?>>未结算</option>
               <option value="3" <?php if ($this->_var['order_settlement'] == 3): ?> selected="selected" <?php endif; ?>>已结算</option>
               <option value="4" <?php if ($this->_var['order_settlement'] == 4): ?> selected="selected" <?php endif; ?>>已失效</option>
            </select>

            <span>合伙人：</span>
            <select name="order_agent_name">
              <option value="1" <?php if ($this->_var['order_agent_name'] == ''): ?> selected="selected" <?php endif; ?>>全部</option>
              <option value="小程序默认" <?php if ($this->_var['order_agent_name'] == '小程序默认'): ?> selected="selected" <?php endif; ?>>小程序默认</option>
              <option value="小程序张凤珍" <?php if ($this->_var['order_agent_name'] == '小程序张凤珍'): ?> selected="selected" <?php endif; ?>>小程序张凤珍</option>
              <option value="小程序陆倩殷" <?php if ($this->_var['order_agent_name'] == '小程序陆倩殷'): ?> selected="selected" <?php endif; ?>>小程序陆倩殷</option>
              <option value="小程序刘晓君" <?php if ($this->_var['order_agent_name'] == '小程序刘晓君'): ?> selected="selected" <?php endif; ?>>小程序刘晓君</option>
              <option value="小程序陈丽" <?php if ($this->_var['order_agent_name'] == '小程序陈丽'): ?> selected="selected" <?php endif; ?>>小程序陈丽</option>
              <option value="小程序张雅丹" <?php if ($this->_var['order_agent_name'] == '小程序张雅丹'): ?> selected="selected" <?php endif; ?>>小程序张雅丹</option>
               <option value="小程序岑少凤" <?php if ($this->_var['order_agent_name'] == '小程序岑少凤'): ?> selected="selected" <?php endif; ?>>小程序岑少凤</option>
                <option value="小程序刘晓君" <?php if ($this->_var['order_agent_name'] == '小程序刘晓君'): ?> selected="selected" <?php endif; ?>>小程序刘晓君</option>
                 <option value="小程序赵晓彤" <?php if ($this->_var['order_agent_name'] == '小程序赵晓彤'): ?> selected="selected" <?php endif; ?>>小程序赵晓彤</option>
                  <option value="小程序庄小园" <?php if ($this->_var['order_agent_name'] == '小程序庄小园'): ?> selected="selected" <?php endif; ?>>小程序庄小园</option>
                   
                    <option value="小程序巢志" <?php if ($this->_var['order_agent_name'] == '小程序巢志'): ?> selected="selected" <?php endif; ?>>小程序巢志</option>
                    <option value="小程序钟秋凤" <?php if ($this->_var['order_agent_name'] == '小程序钟秋凤'): ?> selected="selected" <?php endif; ?>>小程序钟秋凤</option>
                     <option value="小程序李远嗣-张凤珍" <?php if ($this->_var['order_agent_name'] == '小程序李远嗣-张凤珍'): ?> selected="selected" <?php endif; ?>>小程序李远嗣-张凤珍</option>
<option value="小程序林慧萍" <?php if ($this->_var['order_agent_name'] == '小程序林慧萍'): ?> selected="selected" <?php endif; ?>>小程序林慧萍</option>
<option value="小程序江小姐-陆倩殷" <?php if ($this->_var['order_agent_name'] == '小程序江小姐-陆倩殷'): ?> selected="selected" <?php endif; ?>>小程序江小姐-陆倩殷</option>
<option value="小程序洪佳伟" <?php if ($this->_var['order_agent_name'] == '小程序洪佳伟'): ?> selected="selected" <?php endif; ?>>小程序洪佳伟</option>
<option value="小程序简建香" <?php if ($this->_var['order_agent_name'] == '小程序简建香'): ?> selected="selected" <?php endif; ?>>小程序简建香</option>
 <option value="小程序阿文" <?php if ($this->_var['order_agent_name'] == '小程序阿文'): ?> selected="selected" <?php endif; ?>>小程序阿文</option>
 <option value="小程序胡淑珍" <?php if ($this->_var['order_agent_name'] == '小程序胡淑珍'): ?> selected="selected" <?php endif; ?>>小程序胡淑珍</option>
 <option value="小程序阮志航" <?php if ($this->_var['order_agent_name'] == '小程序阮志航'): ?> selected="selected" <?php endif; ?>>小程序阮志航</option>
 <option value="小程序李淑贞" <?php if ($this->_var['order_agent_name'] == '小程序李淑贞'): ?> selected="selected" <?php endif; ?>>小程序李淑贞</option>
 <option value="小程序胡昌贵" <?php if ($this->_var['order_agent_name'] == '小程序胡昌贵'): ?> selected="selected" <?php endif; ?>>小程序胡昌贵</option>
 <option value="小程序洪佳伟" <?php if ($this->_var['order_agent_name'] == '小程序洪佳伟'): ?> selected="selected" <?php endif; ?>>小程序洪佳伟</option>

 <option value="小程序Vivi欣-陆倩殷" <?php if ($this->_var['order_agent_name'] == '小程序Vivi欣-陆倩殷'): ?> selected="selected" <?php endif; ?>>小程序Vivi欣-陆倩殷</option>
 <option value="小程序熊智超" <?php if ($this->_var['order_agent_name'] == '小程序熊智超'): ?> selected="selected" <?php endif; ?>>小程序熊智超</option>
 <option value="小程序谭志杰-阮志航" <?php if ($this->_var['order_agent_name'] == '小程序谭志杰-阮志航'): ?> selected="selected" <?php endif; ?>>小程序谭志杰-阮志航</option>
  <option value="小程序李丽珊" <?php if ($this->_var['order_agent_name'] == '小程序李丽珊'): ?> selected="selected" <?php endif; ?>>小程序李丽珊</option>
   <option value="小程序陈琳" <?php if ($this->_var['order_agent_name'] == '小程序陈琳'): ?> selected="selected" <?php endif; ?>>小程序陈琳</option>
   <option value="小程序齐静艺" <?php if ($this->_var['order_agent_name'] == '小程序齐静艺'): ?> selected="selected" <?php endif; ?>>小程序齐静艺</option>
   <option value="小程序陈显光-岑少凤" <?php if ($this->_var['order_agent_name'] == '小程序陈显光-岑少凤'): ?> selected="selected" <?php endif; ?>>小程序陈显光-岑少凤</option>
   <option value="小程序戴伟豪-胡昌贵" <?php if ($this->_var['order_agent_name'] == '小程序戴伟豪-胡昌贵'): ?> selected="selected" <?php endif; ?>>小程序戴伟豪-胡昌贵</option>

    <option value="小程序金翠丽" <?php if ($this->_var['order_agent_name'] == '小程序金翠丽'): ?> selected="selected" <?php endif; ?>>小程序金翠丽</option>
    <option value="小程序黎佩容-金翠丽" <?php if ($this->_var['order_agent_name'] == '小程序黎佩容-金翠丽'): ?> selected="selected" <?php endif; ?>>小程序黎佩容-金翠丽</option>
    <option value="小程序谭惠心" <?php if ($this->_var['order_agent_name'] == '小程序谭惠心'): ?> selected="selected" <?php endif; ?>>小程序谭惠心</option>
    <option value="小程序陈志杰" <?php if ($this->_var['order_agent_name'] == '小程序陈志杰'): ?> selected="selected" <?php endif; ?>>小程序陈志杰</option>
    <option value="小程序胡振林" <?php if ($this->_var['order_agent_name'] == '小程序胡振林'): ?> selected="selected" <?php endif; ?>>小程序胡振林</option>
    <option value="小程序林钦" <?php if ($this->_var['order_agent_name'] == '小程序林钦'): ?> selected="selected" <?php endif; ?>>小程序林钦</option>




            </select> 
          

           <span>去掉条件（张凤珍、关雅丹、陈丽、岑少凤和1月14号前公共）：</span> 
            <select name="order_condition">
            <option value="1" <?php if ($this->_var['order_condition'] == 1): ?> selected="selected" <?php endif; ?>>否</option>
            <option value="2" <?php if ($this->_var['order_condition'] == 2): ?> selected="selected" <?php endif; ?>>是</option>
             
            </select>
            
           <input type="submit"  value="确定" />
</form>

<div>
当前搜索共<?php echo $this->_var['record_count']; ?>单，效果估计收入共<?php echo $this->_var['total_price']; ?>元----合伙人返利50%得<?php echo $this->_var['total_price_agent']; ?>元
<?php if ($this->_var['order_agent_name_up']): ?>
---TA上级(<?php echo $this->_var['order_agent_name_up']; ?>)返利20%得<?php echo $this->_var['total_price_agent_up']; ?>元
<?php endif; ?>
</div>


<div class="list-div" style="overflow:auto;width:100%;">
<table cellpadding="3" cellspacing="1" >
  <tr>
   <th>序号</th>
   <th>合伙人</th>
  
  <th>订单状态</th>
  <th>订单号</th>
    <th>
      创建时间
    </th>
    
    <th>结算时间</th>

     <th>类目</th>
    <th>商品名</th>
    
    <th>购买数量</th>
    <th>商品价格</th>
    
    <th>付款价格</th>
    <th>效果估计</th>
    <th>佣金比率</th>
   
   

    
  <tr>
  <?php $_from = $this->_var['order_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('okey', 'order');if (count($_from)):
    foreach ($_from AS $this->_var['okey'] => $this->_var['order']):
?>
  <?php if ($this->_var['order']): ?>
  <tr>
  <td align="left" valign="top"  nowrap="nowrap">
     <?php echo $this->_var['order']['row_id']; ?>
    </td>
  <td align="left" valign="top"  nowrap="nowrap">
     <?php echo $this->_var['order']['agent_name']; ?>
    </td>
    <td align="center" valign="top"  nowrap="nowrap">
     <?php echo $this->_var['order']['order_status']; ?>
    </td>
        <td valign="top" nowrap="nowrap"><?php echo $this->_var['order']['order_sn']; ?></td>

    <td><?php echo $this->_var['order']['create_time']; ?></td>
    <td align="left" valign="top"><?php echo $this->_var['order']['clearing_time']; ?></td>
    <td align="left" valign="top"  nowrap="nowrap">
     <?php echo $this->_var['order']['category_name']; ?>
    </td>
    <td align="left" valign="top" nowrap="nowrap"><?php echo $this->_var['order']['goods_name']; ?></td>
   
    <td align="right" valign="top" nowrap="nowrap"><?php echo $this->_var['order']['goods_number']; ?></td>
    <td align="right" valign="top" nowrap="nowrap"><?php echo $this->_var['order']['goods_price']; ?></td>
    
    <td align="right" valign="top"  nowrap="nowrap">
     <?php echo $this->_var['order']['pay_price']; ?>
    </td>
    <td align="right" valign="top"  nowrap="nowrap">
     <?php echo $this->_var['order']['estimated_income']; ?>
    </td>
    <td align="right" valign="top"  nowrap="nowrap">
     <?php echo $this->_var['order']['commission_ratio']; ?>
    </td>
    
    
  </tr>
<?php endif; ?>

  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  
</table>
</div>



</body>
</html>
